package com.yeskery.nut.web.demo.service;

import com.yeskery.nut.extend.mybatisplus.IService;
import com.yeskery.nut.web.demo.domain.Product;

/**
 * 商品service
 * @author Yeskery
 * 2023/7/28
 */
public interface ProductService extends IService<Product> {

    /**
     * 扣除商品库存
     * @param productId
     * @param num
     * @return
     */
    boolean deductStock(Integer productId, Integer num);
}
